import router from '../router/index'
router.beforeEach((to,from)=>{
    let token = sessionStorage.getItem('qf-token')
    if(!token){
        if(to.path!=='/login'){
            return {
                path:'/login'
            }
        }
    }
})
